#include <iostream>

using std::cout;
using std::endl;

//模板参数可以设置默认值
//模板参数有两种：类型参数和非类型参数
template <class T, int base = 10>
T multiply(T x, T y)
{
    return x * y * base;
}

int main()
{
    int num1 = 10, num2 = 20;
    cout << "multiply(num1, num2):" << multiply<int, 10>(num1, num2) << endl;

    cout << "multiply(num1, num2):" << multiply(num1, num2) << endl;

    return 0;
}

